package zhihuilan.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MyCartDto {

    private Integer id;
    private Integer staffid;
    private Integer shopmemberid;
    private Integer shopid;
    private Integer utype;
    private Integer platproductid;
    private Integer productid;
    private Integer factoryid;
    private Integer pid1;
    private Integer pid2;
    private Integer pid3;
    private Integer pid4;
    private Integer pid5;
    private Integer num;

    private String price;
    @JsonProperty("price_q")
    private String priceQ;
    @JsonProperty("price_z")
    private String priceZ;
    private Integer realprice;
    @JsonProperty("realprice_q")
    private Integer realpriceQ;
    @JsonProperty("realprice_z")
    private Integer realpriceZ;
    private Integer pricetype;
    private Integer discounttype;
    private Integer mode;
    private Double discountrate;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addtime;
//    private String prodinfo;
    private String remark;
    private String taxremark;
    private Integer istax;
    private Integer iszhou;
    private Integer biaozhun;
    private Integer source;
    private Integer single;
    private Integer hastax;
    private String title;
    @JsonProperty("source_type")
    private Integer sourceType;

    private MyFactoryProductDto prodinfo;
    private String unitname;
    private Double amount;
    private String factoryname;
}
